{include file=member.header.html}
<script type="text/javascript">
    $(function() {
        $('#integral_goods_form').validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td').next('td');
                error_td.find('.field_notice').hide();
                error_td.find('.red').hide();
                error_td.append(error);
            },
            success: function(label) {
                label.addClass('validate_right').text('OK!');
            },
            onkeyup: false,
            rules: {
                my_num: {
                    required: true,
                    digits: true
                },
                my_name: {
                    required: true
                },
                my_address: {
                    required: true
                },
                my_mobile: {
                    required: true,
                    minlength: 6,
                    checkTel: true
                }
            },
            messages: {
                my_num: {
                    required: '{$lang.my_num_required}',
                    digits: '{$lang.number_only}'
                },
                my_name: {
                    required: '{$lang.my_name_required}'
                },
                my_address: {
                    required: '{$lang.my_address_required}'
                },
                my_mobile: {
                    required: '{$lang.my_mobile_required}',
                    minlength: '{$lang.my_mobile_error}',
                    checkTel: '{$lang.my_mobile_error}'
                }
            }
        });
    });
</script>
<div class="content">
    {include file=member.menu.html}
    <div id="right">
        {include file=member.curlocal.html}
        {include file=member.submenu.html}
        <div class="wrap">
            <div class="public">
                <form method="post" id="integral_goods_form">
                    <div class="information">
                        <div class="info individual">
                            <table>
                                <tbody>
                                    <tr>
                                        <th class="width4">{$lang.goods_name}: </th>
                                        <td>{$integral_goods.goods_name|escape}</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th>{$lang.change_num}:</th>
                                        <td><input type="text" class="text1 width2" name="my_num" id="my_num" value="">&nbsp;{$lang.more_num}{$integral_goods.goods_stock|escape}</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th>{$lang.receive_name}:</th>
                                        <td><input type="text" class="text width" name="my_name" id="my_name" value=""></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th>{$lang.receive_address}:</th>
                                        <td><input type="text" class="text width_normal" name="my_address" id="my_address" value=""></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th>{$lang.contact_tel}:</th>
                                        <td>
                                            <input type="text" class="text width" name="my_mobile" id="my_mobile" value="">
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th>{$lang.remark}：</th>
                                        <td>
                                            <textarea name="my_remark" cols="40" rows="4"></textarea>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <th></th>
                                        <td><input type="submit" class="btn" value="{$lang.confirm_change}"></td>
                                        <td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
{include file=footer.html}
